// ObjectDialog.cpp : implementation file
//

#include "../stdafx.h"
#include "../Reflectometry.h"
#include "ObjectDialog.h"
#include "afxdialogex.h"


// CObjectDialog dialog

IMPLEMENT_DYNAMIC(CObjectDialog, CDialogEx)

CObjectDialog::CObjectDialog(CWnd* pParent /*=NULL*/)
	: CDialogEx(CObjectDialog::IDD, pParent)
	, m_objectx(0)
	, m_objecty(0)
	, m_objectz(0)
{

}

CObjectDialog::~CObjectDialog()
{
}

void CObjectDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_OBJECTX, m_objectx);
	DDX_Text(pDX, IDC_EDIT_OBJECTY, m_objecty);
	DDX_Text(pDX, IDC_EDIT_OBJECTZ, m_objectz);
}


BEGIN_MESSAGE_MAP(CObjectDialog, CDialogEx)
	ON_BN_CLICKED(IDOK, &CObjectDialog::OnBnClickedOk)
END_MESSAGE_MAP()


// CObjectDialog message handlers


void CObjectDialog::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	
	UpdateData(TRUE);
	
	CDialogEx::OnOK();
}
